import {
  AreaChartOutlined,
  SettingOutlined,
  RadarChartOutlined,
} from "@ant-design/icons";
import { IMenuProps } from "./inter";
import DashBoard from "@/views/DashBoard";
import Category from "@/views/Course/Category";
import ArticleList from "@/views/Course/ArticleList";
import Role from "@/views/Manager/Role";
import User from "@/views/Manager/User";
import ArticlePublic from "@/views/Course/ArticlePublic";
import ArticleEdit from "@/views/Course/ArticleEdit";
import Setting from "@/views/Setting";
import MyMap from "@/views/AMap";
import Export from "@/views/Excel/Export";
import Inport from "@/views/Excel/Inport";
import BigFileUpload from "@/views/BigFileUpload";
export const mainRoutes: IMenuProps[] = [
  {
    key: "/dashboard",
    label: "数据统计",
    title: "数据统计",
    icon: <AreaChartOutlined />,
    element: <DashBoard />,
    nochild: 1,
  },
  {
    key: "/course",
    label: "课程管理",
    title: "课程管理",
    icon: <RadarChartOutlined />,
    children: [
      {
        key: "/course/category",
        label: "课程分类",
        title: "课程分类",
        element: <Category />,
      },
      {
        key: "/course/artlist",
        label: "图文课程",
        title: "图文课程",
        element: <ArticleList />,
      },
      {
        key: "/course/artpub",
        label: "图文发布",
        title: "图文发布",
        element: <ArticlePublic />,
        hidden: true,
      },
      {
        key: "/course/edit",
        label: "课程编辑",
        title: "课程编辑",
        element: <ArticleEdit />,
        hidden: true,
      },
    ],
  },
  {
    key: "/manager",
    label: "系统管理",
    title: "系统管理",
    icon: <SettingOutlined />,
    children: [
      {
        key: "/manager/role",
        label: "角色管理",
        title: "角色管理",
        element: <Role />,
      },
      {
        key: "/manager/user",
        label: "账号管理",
        title: "账号管理",
        element: <User />,
      },
    ],
  },
  {
    key: "/setting",
    label: "个人设置",
    title: "个人设置",
    icon: <SettingOutlined />,
    element: <Setting />,
    nochild: 1,
  },
  {
    key: "/map",
    label: "高德地图",
    title: "高德地图",
    icon: <SettingOutlined />,
    element: <MyMap />,
    nochild: 1,
  },
  {
    key: "/excel",
    label: "Excel表格",
    title: "Excel表格",
    icon: <SettingOutlined />,
    children: [
      {
        key: "/excel/export",
        label: "表格导出",
        title: "表格导出",
        element: <Export />,
      },
      {
        key: "/excel/inport",
        label: "表格导入",
        title: "表格导入",
        element: <Inport />,
      },
    ],
  },
  {
    key: "/big",
    label: "大文件上传",
    title: "大文件上传",
    icon: <SettingOutlined />,
    element: <BigFileUpload />,
    nochild: 1,
  },
];
